import request from '@/utils/request';
import { AxiosPromise } from 'axios';
import { ApiProgramTemplateVO, ApiProgramTemplateForm, ApiProgramTemplateQuery } from '@/api/provider/apiProgramTemplate/types';

/**
 * 查询上游供应商连接程序参数模板列表
 * @param apiProgramId 接口程序id
 * @returns {*}
 */
export const listByApiProgramId = (apiProgramId: string | number): AxiosPromise<ApiProgramTemplateVO[]> => {
  return request({
    url: `/provider/apiProgramTemplate/listByApiProgramId/${apiProgramId}`,
    method: 'get'
  });
};
